package code.c07;

/**
 * @author thinkpad - 83start
 * @version v1.0
 * @create 2022/10/13 11:03
 * @package code.c07
 * @description 文件说明
 */

public class Exception02 {
    static void method() throws Exception{
        System.out.println("hello world");
        throw new MyException("字符串为空");
    }

    public static void main(String[] args) throws Exception {
        method();
    }
}
